//
//  LampController.h
//  GBKHOME
//
//  Created by XMYY-19 on 2017/9/4.
//
//

#import <UIKit/UIKit.h>
#import "DeviceView.h"
@class NewEquipment;

@interface LampController : UIViewController
@property(nonatomic,strong)UIButton *lampButtonPic;
@property(nonatomic,strong)UILabel *tipsLabel;
@property(nonatomic,strong)UISlider *mySlider;


@property(nonatomic,strong)UIButton *brightBtn;
@property(nonatomic,strong)UIButton *darkBtn;
@property(nonatomic,strong)UIButton *stopBtn;
@property(nonatomic,strong)UIButton *lampSwitch;

@property(nonatomic,strong)NewEquipment *equipment;
@property (retain) NSString *operation;
@property (retain) NSTimer *autoStopAnimation;

- (id)initWithEquipment:(NewEquipment*)equ;

- (void)initTopBar;
- (void)closeView;

- (void)goBright;
- (void)goDark;
- (void)goStop;

- (void)brightAnimating;
- (void)darkAnimating;
- (void)stopAnimating;

- (void)brightEnd;
- (void)darkEnd;

- (void)setAnimationEnd:(SEL)action;
- (void)AnimationDidStop:(NSTimer *)timer;
- (void)stopTimer;

- (void)operatEnd:(NSDictionary *)dic;
- (void)lightOperat:(NSString *)operat;
- (NSString *)operatEndTipstr:(BOOL)success;
- (void)operatEndTip:(BOOL)success;
#pragma mark - 电器设备开关状态
//- (void)ctlDevice;
//- (void)ctlDeviceEnd:(NSDictionary *)dic;
//- (void)setDeviceOn:(BOOL)on;
//- (void)setDeviceState;
@end
